/*
 * @Descripttion: 静态路由表
 * @version:
 * @Author: lhl
 * @Date: 2024-10-24 15:49:07
 * @LastEditors: lhl
 * @LastEditTime: 2024-10-25 10:58:40
 */
import { Route } from './type';
import Dashboard from '@/views/dashboard/Dashboard';
import Login from '@/views/login/Login';
import NotFound from '@/views/notFound/404';

export const staticRoutes: Route[] = [
    {
        path: '/',
        name: 'Dashboard',
        element: <Dashboard />, // 直接使用 element
        meta:{
          title: '首页',
        }
    },
    {
        path: '/login',
        name: 'Login',
        element: <Login />,
        meta:{
          title: '登录',
          hidden: true,
        }
    },
    {
        path: '*',
        name: 'NotFound',
        element: <NotFound />,
        meta:{
          title: '404',
          hidden: true,
        }
    },
];
